﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace huangqiqi
{
    class Program
    {

        static void Main(string[] args)
        {
            //1、生成一个随机整型数组，长度是10，内容是1~10，数组内容不重复。
            Random hqq = new Random();
            int[] num = new int[10];
            int ret = 0;
            bool a = false;
            for (int i = 0; i < num.Length;)
            {
                int num2 = hqq.Next(1,11);
                if (!num.Contains(num2)) {
                    num[i] = num2;
                    i++;
                }
            }

            foreach ( int item in num)
            {
                Console.Write(item + "\t");
            }
              
        }
    }
}
